package com.yllt4cloud.base.biz.control;

import com.yllt4cloud.base.api.dto.BaseRoomTypeDto;
import com.yllt4cloud.base.biz.service.IBaseRoomTypeService;
import com.yllt4cloud.common.core.util.ResultResp;
import com.yllt4cloud.common.ddbase.param.jsonparam.RequestJsonParam;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: yaoxj
 * @create: 2019-12-24 15:26
 **/
@RestController
@AllArgsConstructor
@RequestMapping("baseRoomType")
public class RoomTypeControl {

    IBaseRoomTypeService baseRoomTypeService;

    @PostMapping("list")
    public ResultResp<?> getSheBeiById(@RequestJsonParam("data") BaseRoomTypeDto roomTypePageDto) {
        roomTypePageDto.setIsDelete(0);
        return ResultResp.success(baseRoomTypeService.queryBaseRoomType(roomTypePageDto));
    }

}
